import request from '@/utils/request'

// 保存或更新家位置
export function saveOrUpdateHomeLocation(data) {
  return request({
    url: '/system/home/saveLocation',
    method: 'post',
    data: data
  })
}

// 获取家位置
export function getHomeLocation() {
  return request({
    url: '/system/home/getLocation',
    method: 'get'
  })
}

// 规划路径
export function planHomeRoute(startLat, startLng) {
  return request({
    url: '/system/home/planRoute',
    method: 'get',
    params: { startLat, startLng }
  })
}